﻿using System.ComponentModel.DataAnnotations;
using Data.AggregateRoot;

namespace Data.Entities
{
    /// <summary>
    /// 系统配置表
    /// </summary>
    public class SysConfig : EntityBase
    {
        /// <summary>
        /// 键
        /// </summary>
        [StringLength(200)]
        [Required]
        public string ConfigKey { get; set; }
        /// <summary>
        /// 值
        /// </summary>
        [StringLength(200)]
        [Required]
        public string ConfigValue { get; set; }
        /// <summary>
        /// 中文名称
        /// </summary>
        [StringLength(200)]
        public string CnName { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [StringLength(2000)]
        public string Description { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}